function nv
  set name confignext
  set basedir ~/work/nvim

  set d $basedir/shada/$name(pwd)
  set f $d/nvim.shada
  if not test -e $f
    mkdir -p $d
    touch $f
  end

  NVIM_APPNAME=$name XDG_CONFIG_HOME=$basedir XDG_DATA_HOME=$basedir/data nvim -i $f
end
